package com.liferay.service.impl;

import java.util.List;

import com.liferay.dao.YearOfSemesterDao;
import com.liferay.dao.impl.YearOfSemesterDaoImpl;
import com.liferay.model.YearOfSemester;
import com.liferay.service.YearOfSemesterService;

public class YearOfSemesterImpl implements YearOfSemesterService {
	private YearOfSemesterDao subjectOpenDao;
	
	public YearOfSemesterImpl(){
		subjectOpenDao = new YearOfSemesterDaoImpl();
	}

	@Override
	public List<YearOfSemester> getMaxSemester() {
		return subjectOpenDao.getMaxSemester();
	}

	@Override
	public boolean insertSemester(YearOfSemester yearOfSemester) {
		return subjectOpenDao.insertSemester(yearOfSemester);
	}

	@Override
	public String checkStringToken(String yearOfSemes) {
		return subjectOpenDao.checkStringToken(yearOfSemes);
	}

	@Override
	public List<YearOfSemester> getListYearOfSemester(long id) {
		return subjectOpenDao.getListYearOfSemester(id);
	}

	@Override
	public boolean deleteSemester(long id) {
		return subjectOpenDao.deleteSemester(id);
	}
}
